package com.annotation.scope;

import com.annotation.util.model.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class ScopeMainConfig {

    @Scope("prototype")
    @Bean
    public Person person() {
        return new Person("张三",2);
    }

}
